package thinkingJava.chapter13;

import java.util.Arrays;
import java.util.regex.Pattern;

public class SplitDemo {
	public static void main(String[] args) {
		String input =
			"This!!unusual use!!of exclamation!!points";
		print(Arrays.toString(Pattern.compile("!!").split(input)));
		print(Arrays.toString(Pattern.compile("!!").split(input,3)));
	}
	public static void print(Object o) {
		System.out.println(o);
	}
}
